package com.dmgis.hndz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 市级预警临时表
 * @TableName ybba02b
 */
@TableName(value ="ybba02b")
@Data
public class Ybba02b implements Serializable {
    /**
     * ID号
     */
    @TableId(value = "ybba02b010")
    private String ybba02b010;

    /**
     * 预警标题
     */
    @TableField(value = "ybba02b020")
    private String ybba02b020;

    /**
     * 预警产品时间
     */
    @TableField(value = "ybba02b030")
    private LocalDateTime ybba02b030;

    /**
     * 预警区域
     */
    @TableField(value = "ybba02b040")
    private String ybba02b040;

    /**
     * 预警颜色
     */
    @TableField(value = "ybba02b050")
    private String ybba02b050;

    /**
     * 预警等级
     */
    @TableField(value = "ybba02b060")
    private String ybba02b060;

    /**
     * 预警所属县
     */
    @TableField(value = "ybba02b070")
    private String ybba02b070;

    /**
     * 市名称
     */
    @TableField(value = "ybba02b090")
    private String ybba02b090;

    /**
     * 预警方位
     */
    @TableField(value = "ybba02b080")
    private Object ybba02b080;

    /**
     * 预警所属乡
     */
    @TableField(value = "ybba02b100")
    private String ybba02b100;

    /**
     * 文本信息
     */
    @TableField(value = "ybba02b110")
    private String ybba02b110;

    /**
     * 0：短临，1：短期，2：中短期
     */
    @TableField(value = "ybba02b120")
    private Integer ybba02b120;

    private Object ybba02b130;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ybba02b other = (Ybba02b) that;
        return (this.getYbba02b010() == null ? other.getYbba02b010() == null : this.getYbba02b010().equals(other.getYbba02b010()))
            && (this.getYbba02b020() == null ? other.getYbba02b020() == null : this.getYbba02b020().equals(other.getYbba02b020()))
            && (this.getYbba02b030() == null ? other.getYbba02b030() == null : this.getYbba02b030().equals(other.getYbba02b030()))
            && (this.getYbba02b040() == null ? other.getYbba02b040() == null : this.getYbba02b040().equals(other.getYbba02b040()))
            && (this.getYbba02b050() == null ? other.getYbba02b050() == null : this.getYbba02b050().equals(other.getYbba02b050()))
            && (this.getYbba02b060() == null ? other.getYbba02b060() == null : this.getYbba02b060().equals(other.getYbba02b060()))
            && (this.getYbba02b070() == null ? other.getYbba02b070() == null : this.getYbba02b070().equals(other.getYbba02b070()))
            && (this.getYbba02b090() == null ? other.getYbba02b090() == null : this.getYbba02b090().equals(other.getYbba02b090()))
            && (this.getYbba02b080() == null ? other.getYbba02b080() == null : this.getYbba02b080().equals(other.getYbba02b080()))
            && (this.getYbba02b100() == null ? other.getYbba02b100() == null : this.getYbba02b100().equals(other.getYbba02b100()))
            && (this.getYbba02b110() == null ? other.getYbba02b110() == null : this.getYbba02b110().equals(other.getYbba02b110()))
            && (this.getYbba02b120() == null ? other.getYbba02b120() == null : this.getYbba02b120().equals(other.getYbba02b120()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getYbba02b010() == null) ? 0 : getYbba02b010().hashCode());
        result = prime * result + ((getYbba02b020() == null) ? 0 : getYbba02b020().hashCode());
        result = prime * result + ((getYbba02b030() == null) ? 0 : getYbba02b030().hashCode());
        result = prime * result + ((getYbba02b040() == null) ? 0 : getYbba02b040().hashCode());
        result = prime * result + ((getYbba02b050() == null) ? 0 : getYbba02b050().hashCode());
        result = prime * result + ((getYbba02b060() == null) ? 0 : getYbba02b060().hashCode());
        result = prime * result + ((getYbba02b070() == null) ? 0 : getYbba02b070().hashCode());
        result = prime * result + ((getYbba02b090() == null) ? 0 : getYbba02b090().hashCode());
        result = prime * result + ((getYbba02b080() == null) ? 0 : getYbba02b080().hashCode());
        result = prime * result + ((getYbba02b100() == null) ? 0 : getYbba02b100().hashCode());
        result = prime * result + ((getYbba02b110() == null) ? 0 : getYbba02b110().hashCode());
        result = prime * result + ((getYbba02b120() == null) ? 0 : getYbba02b120().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ybba02b010=").append(ybba02b010);
        sb.append(", ybba02b020=").append(ybba02b020);
        sb.append(", ybba02b030=").append(ybba02b030);
        sb.append(", ybba02b040=").append(ybba02b040);
        sb.append(", ybba02b050=").append(ybba02b050);
        sb.append(", ybba02b060=").append(ybba02b060);
        sb.append(", ybba02b070=").append(ybba02b070);
        sb.append(", ybba02b090=").append(ybba02b090);
        sb.append(", ybba02b080=").append(ybba02b080);
        sb.append(", ybba02b100=").append(ybba02b100);
        sb.append(", ybba02b110=").append(ybba02b110);
        sb.append(", ybba02b120=").append(ybba02b120);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}